﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HotelManager
{
    public abstract class Person
    {
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string Address { get; set; }
        public string EGN { get; set; }
        public string Id { get; set; }
        public string Nationality { get; set; }
        public string Phone { get; set; }
        
        public Person(string firstName, string lastName, string address, string egn, string id, string phone, string nationality)
        {
            this.FirstName = firstName;
            this.LastName = lastName;
            this.Address = address;
            this.EGN = egn;
            this.Id = id;
            this.Phone = phone;
            this.Nationality = nationality;

        }

        public Person()
        {

        }

        public abstract decimal Purchase(PurchaseInfo purchaseInfo);

        public override string ToString()
        {
            return string .Format("{0}: {1} {2}", this.GetType().Name, this.FirstName, this.LastName);
        }
    }
}
